package com.song.email.servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.song.email.util.common.Counter;

public class CountServlet extends HttpServlet {
	private static final long serialVersionUID = 1118138246549134447L;

	
	public void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		Counter.init();
//		request.getRequestDispatcher("/count.jsp").forward(request, response);
		response.sendRedirect(request.getContextPath() + "/count.jsp");
	}
	
	public void doPost(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		doGet(request, response);
	}

}
